import { useSearchParams } from "react-router-dom"
function User() {
    const [params] = useSearchParams()  //获取其他路由内其他组件传递过来的值
    return (
        <h3>用户页面--{params.get('id')}</h3>
    )
}
export default User